#覆盖写入
fileObject = open('a.txt','w')
fileObject.write('linux系统')
fileObject.write('我是你巴巴爸爸')
fileObject.close()

#with追加写入
with open('b.txt','a')as fileObject:
    fileObject.write('阿萨斯多')
fileObject.close()

#读取图片，写入复制图片
with open('logo.png','rb')as src_file:
    with open('copy2logo.png','wb')as target_file:
        target_file.write(src_file.read())





